import React, { Component } from 'react';

class ChildCpn extends Component {
  render() {
    return (
      <div>
        <h2>Subcomponents present data: {this.props.name + ' ' + this.props.age }</h2>
      </div>
    )
  }
}

export default class App extends Component {
  render() {
    return (
      <div>
        <ChildCpn name="王总" age="18" />
        <ChildCpn name="王总" age="20" />
      </div>
    )
  }
}